package com.example.apps

import com.example.lib_base.BaseReop
import com.example.lib_base.Res
import com.example.lib_http.HttpType
import com.example.lib_http.NetworkFactory
import com.huluobo.apps.entity.AppsEntity
import kotlinx.coroutines.flow.Flow
import javax.inject.Inject

class AppsReop @Inject constructor():BaseReop(){
    private val apiService by lazy { NetworkFactory.factory(HttpType.NONE).create(ApiService::class.java) }

    fun getApps():Flow<Res<AppsEntity>>{
        return apiService.getApps()
    }
}